# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=parole
pkgver=4.18.1
pkgrel=0
case $pkgver in
	*.*.*.*) _branch=${pkgver%.*.*};;
	*.*.*) _branch=${pkgver%.*};;
esac
pkgdesc="Media player for the Xfce desktop"
url="https://docs.xfce.org/apps/parole/start"
arch="all"
license="GPL-2.0-or-later"
depends="gst-plugins-good"
depends_dev="
	dbus-glib-dev
	gst-plugins-base-dev
	gstreamer-dev
	intltool
	libnotify-dev
	libsm-dev
	libxfce4ui-dev
	libxfce4util-dev
	taglib-dev
	"
makedepends="$depends_dev linux-headers"
subpackages="$pkgname-dev $pkgname-lang"
source="https://archive.xfce.org/src/apps/parole/$_branch/parole-$pkgver.tar.bz2"
options="!check" # no tests

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-gstreamer=1.0
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
ec2b8036f2be594dc13c37aca76b7250ec1792c7166501e9a2775efb731e87cf6894196243e68026437e2bbd4a9edf1aa9cfa076886e333e2ecf4523f8f1d647  parole-4.18.1.tar.bz2
"
